# @Time : 2025-01-08 10:50
# @Author : Fioman 
# @Phone : 13149920693
"""
作业工单表
"""
from db_tool.db_config import TableName, TableRegister

tableName: str = TableName.orders.name
initData = {
    "key": "1",
    "orderId": "initId",
    "width": 600,
    "height": 600,
    "cropperThickness": "0~0.33",
    "topEdge": 15,
    "leftEdge": 15,
    "bottomEdge": 15,
    "rightEdge": 15,
    "calcHeight": 0,
    "calcWidth": 0,
    "isBreak": "否",
    "layoutMode": "竖排",
    "planCount": 0,  # 目标数量
    "finished": 0,  # 已完成
    "jointNumber": "2",
}
TableRegister.register_table(tableName, initData)
if __name__ == '__main__':
    from db_tool.db_config import re_init_table

    # 重新创建表结构,或者新增表字段之后,重新初始化表内容,谨慎使用
    re_init_table(tableName, initData)
